﻿using SqlSugar;
using System;
using System.Data;

namespace DataModels.Entities.AuthCore
{
    /// <summary>
    /// 表实体映射（根据数据库表结构生成）
    /// </summary>
    [SugarTable("dncrole")] // 替换为实际数据库表名
    public class Dncrole
    {
        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnName = "Code")]
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnName = "Name")]
        public string Name { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Description")]
        public string Description { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "Status")]
        public int Status { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(ColumnName = "IsDeleted")]
        public int IsDeleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreatedOn")]
        public DateTime CreatedOn { get; set; }

        /// <summary>
        /// 创建人UserGuid
        /// </summary>
        [SugarColumn(ColumnName = "CreatedByUserGuid")]
        public string CreatedByUserGuid { get; set; }

        /// <summary>
        /// 创建人用户名
        /// </summary>
        [SugarColumn(ColumnName = "CreatedByUserName")]
        public string CreatedByUserName { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "ModifiedOn")]
        public DateTime ModifiedOn { get; set; }

        /// <summary>
        /// 修改人UserGuid
        /// </summary>
        [SugarColumn(ColumnName = "ModifiedByUserGuid")]
        public string ModifiedByUserGuid { get; set; }

        /// <summary>
        /// 修改人用户名
        /// </summary>
        [SugarColumn(ColumnName = "ModifiedByUserName")]
        public string ModifiedByUserName { get; set; }

        /// <summary>
        /// 是否超级管理员
        /// </summary>
        [SugarColumn(ColumnName = "IsSuperAdministrator")]
        public int IsSuperAdministrator { get; set; }

        /// <summary>
        /// 是否内置
        /// </summary>
        [SugarColumn(ColumnName = "IsBuiltIn")]
        public int IsBuiltIn { get; set; }

        /// <summary>
        /// 是否种子数据
        /// </summary>
        [SugarColumn(ColumnName = "IsSeed")]
        public int IsSeed { get; set; }
    }
}